import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path'
import tsconfigPaths from 'vite-tsconfig-paths';
import tailwindcss from '@tailwindcss/vite';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react(), tsconfigPaths(), tailwindcss()],
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src') // 确保指向src目录
    }
  },
});
